package yf.mall.service;

import org.apache.catalina.User;
import org.springframework.stereotype.Service;
import yf.mall.entity.MallGoodsEntity;
import yf.mall.entity.MallOrderEntity;
import yf.mall.entity.UserEntity;
import yf.mall.vo.UserRewardVO;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;

public  interface ModelCalculator {

     HashMap<Long, UserRewardVO> baseCalculator(MallOrderEntity order);

     HashMap<Long,UserRewardVO> calculator(Long userId,BigDecimal total,Boolean baoDan);

     BigDecimal sumTotal(MallOrderEntity order);

}

